-- GENERATED SPELL FOR [Jungle Thunderer] --


function spell0_1114(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(61685,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1114', 4000, 1)
end

function spell1_1114(pUnit, Event) --@Cower,n/a--
pUnit:FullCastSpellOnTarget(1755,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1114', 0, 1)
end

function spell2_1114(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14918,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1114', 0, 1)
end

function spell3_1114(pUnit, Event) --@Smack,n/a--
pUnit:FullCastSpellOnTarget(49970,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1114', 610, 1)
end

function Sorts_1114(pUnit, Event)
local choix_sorts_1114 = math.random(0, 3)
if choix_sorts_1114 == 0 then
pUnit:RegisterEvent('spell0_1114', 1, 1)
end
if choix_sorts_1114 == 1 then
pUnit:RegisterEvent('spell1_1114', 1, 1)
end
if choix_sorts_1114 == 2 then
pUnit:RegisterEvent('spell2_1114', 1, 1)
end
if choix_sorts_1114 == 3 then
pUnit:RegisterEvent('spell3_1114', 1, 1)
end
end

function mob1114_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1114', math.random(1500, 3000), 1)
end

function mob1114_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1114_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1114_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1114, 1, 'mob1114_Action')
RegisterUnitEvent(1114, 2, 'mob1114_Leave')
RegisterUnitEvent(1114, 3, 'mob1114_Kill')
RegisterUnitEvent(1114, 4, 'mob1114_Die')
